gui/macOS: Reimplement sync button more subtly within the sync status component
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Wed, 26 Feb 2025 02:15:54 +0000 (10:15 +0800)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Mon, 3 Mar 2025 16:11:47 +0000 (16:11 +0000)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/macOS/ui/FileProviderSettings.qml
src/gui/macOS/ui/FileProviderSyncStatus.qml

index 7ffee4d4f39a71ac6dd5d0101c3aeb84eb2b2cf0..98a437cd5add7c3c938e2c3b5d35cc749ab7a7a0 100644 (file)
@@ -79,6 +79,7 @@ Page {
 
                 FileProviderSyncStatus {
                     syncStatus: root.controller.domainSyncStatusForAccount(root.accountUserIdAtHost)
+                    onDomainSignalRequested: root.controller.signalFileProviderDomain(root.accountUserIdAtHost)
                 }
 
                 FileProviderFastEnumerationSettings {
index 11f093bbcd88bf0db91e8f5a08bf3c2f0bb1d97a..a02fe440189eb84d38beeae9b250c7e22e4ba2eb 100644 (file)
@@ -25,6 +25,7 @@ import com.nextcloud.desktopclient 1.0
 GridLayout {
     id: root
 
+    signal domainSignalRequested
     required property var syncStatus
 
     rows: syncStatus.syncing ? 2 : 1
@@ -64,4 +65,10 @@ GridLayout {
         value: root.syncStatus.fractionCompleted
         visible: root.syncStatus.syncing
     }
+
+    Button {
+        text: qsTr("Request sync")
+        onClicked: root.controller.signalFileProviderDomain(root.accountUserIdAtHost)
+        visible: !root.syncStatus.syncing
+    }
 }
\ No newline at end of file